package file.a03;

import java.io.FileWriter;

public class FileWriterTest {
    public static void main(String[] args) {
        try(
                FileWriter fw=new FileWriter("fw.txt");
                ){
            fw.write("床前明月光\n");
            fw.write("低头思故乡\n");
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
